package io.adrainty.bolee.trade.models.bo;

import com.baomidou.mybatisplus.annotation.TableName;
import io.adrainty.bolee.framework.commons.basic.BaseBO;
import io.adrainty.bolee.trade.models.valobj.RefundStatusEnum;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serial;
import java.math.BigDecimal;

/**
 * <p>RefundRecordBO</p>
 *
 * @author AdRainty
 * @version V1.0.0
 * @description 退款记录
 * @since 2025/8/28 11:28:57
 */

@Data
@EqualsAndHashCode(callSuper = true)
@Schema(description = "退款记录")
@TableName("tab_refund_record")
public class RefundRecordBO extends BaseBO {
    
    @Serial
    private static final long serialVersionUID = -5579696846485418394L;

    @Schema(description = "交易系统订单号【对于三方来说：商户订单】")
    private Long tradeOrderNo;

    @Schema(description = "业务系统订单号")
    private Long productOrderNo;

    @Schema(description = "本次退款订单号")
    private String refundNo;

    @Schema(description = "商户号")
    private String companyNo;

    @Schema(description = "退款渠道【支付宝、微信、现金】")
    private String tradeChannel;

    @Schema(description = "退款状态【成功：SUCCESS,进行中：SENDING】")
    private RefundStatusEnum refundStatus;

    @Schema(description = "返回编码")
    private String refundCode;

    @Schema(description = "返回信息")
    private String refundMsg;

    @Schema(description = "备注【订单门店，桌台信息】")
    private String memo;

    @Schema(description = "本次退款金额")
    private BigDecimal refundAmount;
    
}
